package com.empire.module.sporttery.dal.mysql.football500ouzdetail;

import java.util.*;

import com.empire.framework.common.pojo.PageResult;
import com.empire.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.empire.framework.mybatis.core.mapper.BaseMapperX;
import com.empire.module.sporttery.dal.dataobject.football500ouzdetail.Football500OuzDetailDO;
import org.apache.ibatis.annotations.Mapper;
import com.empire.module.sporttery.controller.admin.football500ouzdetail.vo.*;

/**
 * 亚盘实时 Mapper
 *
 * @author 无敌仙人
 */
@Mapper
public interface Football500OuzDetailMapper extends BaseMapperX<Football500OuzDetailDO> {

    default PageResult<Football500OuzDetailDO> selectPage(Football500OuzDetailPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<Football500OuzDetailDO>()
                .eqIfPresent(Football500OuzDetailDO::getMatchId, reqVO.getMatchId())
                .eqIfPresent(Football500OuzDetailDO::getYpId, reqVO.getYpId())
                .eqIfPresent(Football500OuzDetailDO::getHomeWater, reqVO.getHomeWater())
                .eqIfPresent(Football500OuzDetailDO::getHomeStatus, reqVO.getHomeStatus())
                .eqIfPresent(Football500OuzDetailDO::getDrawWater, reqVO.getDrawWater())
                .eqIfPresent(Football500OuzDetailDO::getDrawStatus, reqVO.getDrawStatus())
                .eqIfPresent(Football500OuzDetailDO::getAwayWater, reqVO.getAwayWater())
                .eqIfPresent(Football500OuzDetailDO::getAwayStatus, reqVO.getAwayStatus())
                .eqIfPresent(Football500OuzDetailDO::getBackRate, reqVO.getBackRate())
                .betweenIfPresent(Football500OuzDetailDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(Football500OuzDetailDO::getId));
    }

}